package com.huike.web.controller.report;


import com.huike.clues.domain.SysUserMssage;
import com.huike.clues.domain.vo.IndexStatisticsVo;
import com.huike.common.core.domain.AjaxResult;
import com.huike.report.domain.vo.IndexVo;
import com.huike.report.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/index")
public class IndexController {
    @Autowired
    IndexService indexService;

    /*线索转化龙虎榜接口*/
    @GetMapping("/salesStatistic")
    public AjaxResult salesStatistic(IndexStatisticsVo indexStatisticsVo) {
        List<Map<String, Object>> list = indexService.salesStatistic(indexStatisticsVo);
        return AjaxResult.success(list);
    }

 /*   *//*首页数据统计接口*//*
    @GetMapping()
    public AjaxResult own(IndexStatisticsVo indexStatisticsVo) {
        List<IndexVo> list=indexService.own(indexStatisticsVo);
        return AjaxResult.success(list);
    }*/
}
